import includeProps from "../page/includeProps"
import React from 'react'
function FuncProps(WrappedComponent) {
  return class extends React.Component {
    constructor(props) {
      super(props)
      this.state = {
        name: 'coderLT',
        age: 18
      }
    }
    render() {
      return <WrappedComponent {...this.props} {...this.state} />
    }
  }
}

export default FuncProps(includeProps)